package top.zackyoung.redis.config;

import com.google.common.collect.Maps;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;
import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix = "caches")
public class Properties {

    private final Map<String, Duration> initCaches = Maps.newHashMap();
//    private final defaultDuration = ;

    public Map<String, Duration> getInitCaches() {

        return initCaches;

    }

}
